package io.renren.modules.blog.dto;

import java.util.Date;

import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.DefaultGroup;
import io.renren.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;

@ApiModel(value = "")
public class BlogCategoryDto implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键")

    @Null(message = "{BlogCategory.id.require}", groups = AddGroup.class)
    @NotNull(message = "{BlogCategory.id.require}", groups = UpdateGroup.class)
    private Long id;

    @ApiModelProperty(value = "分类名称")

    @NotNull(message = "{BlogCategory.name.require}", groups = DefaultGroup.class)
    private String name;

    @ApiModelProperty(value = "排序")

    @NotNull(message = "{BlogCategory.sort.require}", groups = DefaultGroup.class)
    private Integer sort;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
